package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门店原料对象 store_raw_materials_summary
 *
 * @author ruoyi
 * @date 2025-05-27
 */
public class StoreRawMaterialsSummary extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID，主键，自增唯一标识 */
    private Long id;

    /** 门店名称，例如“北京朝阳店”“上海浦东店”等，不允许为空 */
    @Excel(name = "门店名称，例如“北京朝阳店”“上海浦东店”等，不允许为空")
    private String storeName;

    /** 门店编号，业务唯一标识码（如系统编码），不允许为空且唯一 */
    @Excel(name = "门店编号，业务唯一标识码", readConverterExp = "如=系统编码")
    private String storeCode;

    /** 原料总数，统计该门店下的所有原料数量，默认为0 */
    @Excel(name = "原料总数，统计该门店下的所有原料数量，默认为0")
    private Long totalRawMaterialsCount;

    /** 原料分类数，统计该门店下的原料分类数量，默认为0 */
    @Excel(name = "原料分类数，统计该门店下的原料分类数量，默认为0")
    private Long totalRawMaterialCategories;

    /** 最后更新时间，默认为当前时间，更新时自动刷新 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间，默认为当前时间，更新时自动刷新", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastUpdatedAt;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setStoreName(String storeName)
    {
        this.storeName = storeName;
    }

    public String getStoreName()
    {
        return storeName;
    }

    public void setStoreCode(String storeCode)
    {
        this.storeCode = storeCode;
    }

    public String getStoreCode()
    {
        return storeCode;
    }

    public void setTotalRawMaterialsCount(Long totalRawMaterialsCount)
    {
        this.totalRawMaterialsCount = totalRawMaterialsCount;
    }

    public Long getTotalRawMaterialsCount()
    {
        return totalRawMaterialsCount;
    }

    public void setTotalRawMaterialCategories(Long totalRawMaterialCategories)
    {
        this.totalRawMaterialCategories = totalRawMaterialCategories;
    }

    public Long getTotalRawMaterialCategories()
    {
        return totalRawMaterialCategories;
    }

    public void setLastUpdatedAt(Date lastUpdatedAt)
    {
        this.lastUpdatedAt = lastUpdatedAt;
    }

    public Date getLastUpdatedAt()
    {
        return lastUpdatedAt;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("storeName", getStoreName())
                .append("storeCode", getStoreCode())
                .append("totalRawMaterialsCount", getTotalRawMaterialsCount())
                .append("totalRawMaterialCategories", getTotalRawMaterialCategories())
                .append("lastUpdatedAt", getLastUpdatedAt())
                .append("remark", getRemark())
                .append("phone", getPhone())
                .toString();
    }
}
